package o;

import android.text.TextUtils;

public class cmb {
    private final String ˊ;
    private final int ˎ;
    private final cmc ˏ = cmc.ˊ();

    public cmb(String str, int i) {
        this.ˎ = i + 7;
        this.ˊ = str;
    }

    public void ॱ(int i, String str, String str2, Throwable th) {
        if (this.ˏ.ॱ(i)) {
            String str3 = null;
            if (this.ˏ.ॱ()) {
                cma ˋ = ˋ(i, str, str2);
                if (this.ˏ.ˏ()) {
                    ˋ.ˊ(th);
                }
                str3 = ˋ.ˊ() + ˋ.ॱ();
            }
            if (TextUtils.isEmpty(this.ˊ)) {
                this.ˏ.ॱ(str3, i, str, str2, th);
                return;
            }
            this.ˏ.ॱ(str3, i, this.ˊ + "/" + str, str2, th);
        }
    }

    public void ˏ(int i, String str, String str2) {
        if (this.ˏ.ॱ(i)) {
            String str3;
            if (this.ˏ.ॱ()) {
                cma ˋ = ˋ(i, str, str2);
                str3 = ˋ.ˊ() + ˋ.ॱ();
            } else {
                str3 = null;
            }
            if (TextUtils.isEmpty(this.ˊ)) {
                this.ˏ.ॱ(str3, i, str, str2, null);
                return;
            }
            this.ˏ.ॱ(str3, i, this.ˊ + "/" + str, str2, null);
        }
    }

    private cma ˋ(int i, String str, String str2) {
        cma o_cma = new cma(this.ˎ, this.ˊ, i, str);
        o_cma.ˏ((Object) str2);
        return o_cma;
    }
}
